import { getHolidays, getLastHoliday, } from '@/services/db/public.ts';
import styles from './index.module.less'

import { CyDateFilter } from "cysj-ui-components/es/basic";

const DateFilterRow = (props: any) => {
    return (
        <div className={styles['date-query-form']}>
            <CyDateFilter
                getHolidays={getHolidays}
                getLastHoliday={getLastHoliday}
                scopeMap={{
                    all: '全部',
                    month: '月度',
                    year: '年度',
                    holiday: '节假日',

                }}
                holidaySelectProps={{
                    style: {
                        width: '120rem'
                    }
                }}

                // defaultValues={{...AppConfig.analyse}}

                // getData={refreshData}
                {...props}
                dateScopes={['all', 'month', 'year', 'holiday']}
            />
        </div>

    )

}

export default DateFilterRow;
